import Vue from "vue";
import Router from "vue-router";
import BaseRouter from "views/common/base-router.vue";
import layout from "views/layout/index";

Vue.use(Router);

const routes = [
    {
        path: "/",
        name: "layout",
        component: resolve => require(["../views/layout/index.vue"], resolve),
        redirect: "/Login",
        children: [
            {
                path: "/business/busPla",
                name: "商务管理",
                component: resolve =>
                    require(["../views/business/index.vue"], resolve),
                meta: {
                    title: "商务管理"
                }
            },
            {
                path: "/business/tos",
                name: "客户委托",
                component: resolve =>
                    require(["../views/business/tos/index"], resolve),
                meta: {
                    title: "客户委托"
                }
            },
            {
                path: "/first",
                name: "欢迎",
                component: resolve =>
                    require(["../views/business/first.vue"], resolve),
                meta: {
                    title: "欢迎"
                }
            },
            {
                path: "/business/busPla/Customer",
                name: "客户管理",
                component: resolve =>
                    require(["../views/business/customer/index.vue"], resolve),
                meta: {
                    title: "客户管理"
                }
            },
            {
                path: '/business/busPla/CustomerLogin',
                name: '客户登录账号',
                component: resolve => require(['../views/business/customer/indexLogin.vue'], resolve),
                meta: {
                    title: '客户登录账号'
                }
            },
            {
                path: '/business/busPla/Contract',
                name: '合同管理',
                component: resolve => require(['../views/business/contract/index.vue'], resolve),
                meta: {
                    title: "合同管理"
                }
            },
            {
                path: "/business/busPla/Track",
                name: "集装箱追踪查询",
                component: resolve =>
                    require([
                        "../views/business/containerTrack/containerTrack.vue"
                    ], resolve),
                meta: {
                    title: "集装箱追踪查询"
                }
            },
            {
                path: "/business/busPla/ContainerOnPort",
                name: "在港箱查询",
                component: resolve =>
                    require([
                        "../views/business/ContainerOnPort/ContainerOnPort.vue"
                    ], resolve),
                meta: {
                    title: "在港箱查询"
                }
            },
            {
                path: "/Home/SystemS",
                name: "系统管理工作台",
                component: resolve =>
                    require(["../views/business/system/index.vue"], resolve),
                meta: {
                    title: "系统管理工作台"
                }
            },
            {
                path: "/Home/SystemBase",
                name: "基础管理工作台",
                component: resolve =>
                    require(["../views/business/jobBase/index.vue"], resolve),
                meta: {
                    title: "基础管理工作台"
                }
            },
            {
                path: "/Home/SystemBase/Port",
                name: "港口管理",
                component: resolve =>
                    require(["../views/business/port/port.vue"], resolve),
                meta: {
                    title: "港口管理"
                }
            },
            {
                path: "/Home/SystemBase/EntrustSplitRule",
                name: "委托拆分计划规则",
                component: resolve =>
                    require([
                        "../views/business/entrustSplitRule/index.vue"
                    ], resolve),
                meta: {
                    title: "委托拆分计划规则"
                }
            },
            {
                path: "/Home/SystemBase/ContainerType",
                name: "箱类型管理",
                component: resolve =>
                    require([
                        "../views/business/containerType/index.vue"
                    ], resolve),
                meta: {
                    title: "箱类型管理"
                }
            },
            {
                path: "/Home/SystemBase/ContainerSize",
                name: "箱尺寸管理",
                component: resolve =>
                    require([
                        "../views/business/containerSize/index.vue"
                    ], resolve),
                meta: {
                    title: "箱尺寸管理"
                }
            },
            {
                path: "/Home/SystemBase/jobWorkTeam",
                name: "作业班组管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/jobWorkTeam.vue"
                    ], resolve),
                meta: {
                    title: "作业班组管理"
                }
            },
            {
                path: "/Home/SystemBase/jobProfession",
                name: "作业工种管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/jobProfession.vue"
                    ], resolve),
                meta: {
                    title: "作业工种管理"
                }
            },
            {
                path: "/Home/SystemBase/operator",
                name: "作业人员管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/operator.vue"
                    ], resolve),
                meta: {
                    title: "作业人员管理"
                }
            },
            {
                path: "/Home/SystemBase/jobTerminal",
                name: "终端管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/jobTerminal.vue"
                    ], resolve),
                meta: {
                    title: "终端管理"
                }
            },
            {
                path: "/Home/SystemBase/jobMachinery",
                name: "机械管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/jobMachinery.vue"
                    ], resolve),
                meta: {
                    title: "机械管理"
                }
            },
            {
                path: "/Home/SystemBase/jobVehicle",
                name: "车辆管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/jobVehicle.vue"
                    ], resolve),
                meta: {
                    title: "车辆管理"
                }
            },
            {
                path: "/Home/SystemBase/specialTransportLine",
                name: "专运线管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/specialTransportLine.vue"
                    ], resolve),
                meta: {
                    title: "专运线管理"
                }
            },
            {
                path: "/Home/SystemBase/specialTransportLineMachine",
                name: "专运线机械配置",
                component: resolve =>
                    require([
                        "../views/business/baseResource/specialTransportLineMachine.vue"
                    ], resolve),
                meta: {
                    title: "专运线机械配置"
                }
            },
            {
                path: "/Home/SystemBase/cargoType",
                name: "货类管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/cargoType.vue"
                    ], resolve),
                meta: {
                    title: "货类管理"
                }
            },
            {
                path: "/Home/SystemBase/cargoName",
                name: "货名管理",
                component: resolve =>
                    require([
                        "../views/business/baseResource/cargoName.vue"
                    ], resolve),
                meta: {
                    title: "货名管理"
                }
            },
            {
                path: "/Home/SystemBase/ship",
                name: "船舶资料",
                component: resolve =>
                    require(["../views/business/port/ship.vue"], resolve),
                meta: {
                    title: "船舶资料"
                }
            },
            {
                path: "/Home/SystemBase/feeRule",
                name: "计费规则",
                component: resolve =>
                    require(["../views/business/balance/feeRule.vue"], resolve),
                meta: {
                    title: "计费规则"
                }
            },
            {
                path: "/Home/SystemBase/pieceRule",
                name: "计件规则",
                component: resolve =>
                    require([
                        "../views/business/balance/pieceRule.vue"
                    ], resolve),
                meta: {
                    title: "计件规则"
                }
            },
            {
                path: "/Home/SystemS/Department",
                name: "部门管理",
                component: resolve =>
                    require([
                        "../views/business/system/department.vue"
                    ], resolve),
                meta: {
                    title: "部门管理"
                }
            },
            {
                path: "/Home/SystemS/excel",
                name: "excel模板",
                component: resolve =>
                    require([
                        "../views/business/base-excel/index.vue"
                    ], resolve),
                meta: {
                    title: "excel模板"
                }
            },
            {
                path: "/Home/SystemS/Role",
                name: "角色管理",
                component: resolve =>
                    require(["../views/business/system/role.vue"], resolve),
                meta: {
                    title: "角色管理"
                }
            },
            {
                path: "/Home/SystemS/Org",
                name: "使用单位",
                component: resolve =>
                    require(["../views/business/system/org.vue"], resolve),
                meta: {
                    title: "使用单位"
                }
            },
            {
                path: "/Home/SystemS/Person",
                name: "用户管理",
                component: resolve =>
                    require(["../views/business/system/person.vue"], resolve),
                meta: {
                    title: "用户管理"
                }
            },
            {
                path: "/Home/SystemS/SystemParameter",
                name: "系统参数管理",
                component: resolve =>
                    require([
                        "../views/business/system/systemParameter.vue"
                    ], resolve),
                meta: {
                    title: "系统参数管理"
                }
            },
            {
                path: "/Home/SystemS/SecurityGroup",
                name: "安全组",
                component: resolve =>
                    require([
                        "../views/business/system/securityGroup.vue"
                    ], resolve),
                meta: {
                    title: "安全组"
                }
            },
            {
                path: "/Home/InterfaceManagement",
                name: "interface-management",
                component: resolve =>
                    require([
                        "../views/business/system/interfaceManagement.vue"
                    ], resolve),
                meta: {
                    title: "接口管理"
                }
            },
            {
                path: "/Home/SystemS/SystemDictionary",
                name: "系统字典",
                component: resolve =>
                    require([
                        "../views/business/system/systemDictionary.vue"
                    ], resolve),
                meta: {
                    title: "系统字典"
                }
            },
            {
                path: "/Home/SystemS/AppInfo",
                name: "应用管理",
                component: resolve =>
                    require(["../views/business/system/appInfo.vue"], resolve),
                meta: {
                    title: "应用管理"
                }
            },
            {
                path: "/Home/SystemS/AppVersion",
                name: "应用版本管理",
                component: resolve =>
                    require([
                        "../views/business/system/appVersion.vue"
                    ], resolve),
                meta: {
                    title: "应用版本管理"
                }
            },

            //登录信息查询
            {
                path: "/Home/LoginInfo/LoginInfo",
                name: "登录信息查询",
                component: resolve =>
                    require([
                        "../views/business/LoginInfo/LoginInfo.vue"
                    ], resolve),
                meta: {
                    title: "登录信息查询"
                }
            },
            {
                path: "/Home/SystemBase/rule",
                name: "规则设置",
                component: resolve =>
                    require(["../views/business/rule/index.vue"], resolve),
                meta: {
                    title: "规则设置"
                }
            },
            {
                path: "/work/JobBase",
                name: "现场作业基础管理",
                component: resolve =>
                    require(["../views/business/jobBase/index.vue"], resolve),
                meta: {
                    title: "现场作业基础管理"
                }
            },
            {
                path: "/work/JobPlan",
                name: "铁路作业计划管理",
                component: resolve =>
                    require(["../views/business/jobPlan/index.vue"], resolve),
                meta: {
                    title: "铁路作业计划管理"
                }
            },
            {
                path: "/work/yardPlan",
                name: "堆场策划管理",
                component: resolve =>
                    require(["../views/business/yardPlan/index.vue"], resolve),
                meta: {
                    title: "堆场策划管理"
                }
            },
            {
                path: "/work/yardMsg",
                name: "堆场管理",
                component: resolve =>
                    require([
                        "../views/business/yardPlan/yardMsg.vue"
                    ], resolve),
                meta: {
                    title: "堆场管理"
                }
            },
            {
                path: "/work/yardMachine",
                name: "场区机械配置",
                component: resolve =>
                    require([
                        "../views/business/yardPlan/yardMachine.vue"
                    ], resolve),
                meta: {
                    title: "场区机械配置"
                }
            },
            {
                path: "/work/yardPlanType",
                name: "堆场策划类型",
                component: resolve =>
                    require([
                        "../views/business/yardPlan/yardPlanType.vue"
                    ], resolve),
                meta: {
                    title: "堆场策划类型"
                }
            },
            {
                path: "/work/yardMap",
                name: "堆场图",
                component: resolve =>
                    require([
                        "../views/business/yardPlan/yardMap.vue"
                    ], resolve),
                meta: {
                    title: "堆场图"
                }
            },
            {
                path: "/work/JobTable",
                name: "计划列表",
                component: resolve =>
                    require([
                        "../views/business/jobPlan/JobTable.vue"
                    ], resolve),
                meta: {
                    title: "计划列表"
                }
            },
            {
                path: "/work/gatePanel",
                name: "铁路道闸工作台",
                component: resolve =>
                    require(["../views/business/gatePanel/index.vue"], resolve),
                meta: {
                    title: "铁路道闸工作台"
                }
            },
            {
                path: "/work/portCount",
                name: "港口总览",
                component: resolve =>
                    require(["../views/business/portCount/index.vue"], resolve),
                meta: {
                    title: "港口总览"
                }
            },
            {
                path: "/work/containerJob",
                name: "铁路集装箱作业台",
                component: resolve =>
                    require([
                        "../views/business/containerJob/index.vue"
                    ], resolve),
                meta: {
                    title: "铁路集装箱作业台"
                }
            },
            {
                path: "/work/piece",
                name: "作业计件",
                component: resolve =>
                    require(["../views/business/piece/index.vue"], resolve),
                meta: {
                    title: "作业计件"
                }
            },
            {
                path: "/work/team",
                name: "班组统计",
                component: resolve =>
                    require(["../views/business/piece/team.vue"], resolve),
                meta: {
                    title: "班组统计"
                }
            },
            {
                path: "/work/teamDetail",
                name: "作业明细",
                component: resolve =>
                    require(["../views/business/piece/detail.vue"], resolve),
                meta: {
                    title: "作业明细"
                }
            },
            {
                path: "/work/containerJob/workList",
                name: "作业列表",
                component: resolve =>
                    require(["../views/business/workList/index.vue"], resolve),
                meta: {
                    title: "作业列表"
                }
            },
            {
                path: "/work/middleControl",
                name: "中控调度",
                component: resolve =>
                    require([
                        "../views/business/middleControl/index.vue"
                    ], resolve),
                meta: {
                    title: "中控调度"
                }
            },
            {
                path: "/work/badBox",
                name: "坏箱登记",
                component: resolve =>
                    require([
                        "../views/business/middleControl/badBox.vue"
                    ], resolve),
                meta: {
                    title: "坏箱登记"
                }
            },
            {
                path: "/work/gate",
                name: "闸口管理",
                component: resolve =>
                    require(["../views/business/gate/index.vue"], resolve),
                meta: {
                    title: "闸口管理"
                }
            },
            {
                path: "/work/shipPlan/index",
                name: "理货作业",
                component: resolve =>
                    require(["../views/business/shipPlan/index.vue"], resolve),
                meta: {
                    title: "理货作业"
                }
            },
            {
                path: '/work/shipPlan/dayReport',
                name: '理货作业日报',
                component: resolve => require(['../views/business/shipPlan/dayReport.vue'], resolve),
                meta: {
                    title: '理货作业日报'
                }
            },
            {
                path: '/work/shipPlan/monthReport',
                name: '财务月报',
                component: resolve => require(['../views/business/shipPlan/monthReport.vue'], resolve),
                meta: {
                    title: '财务月报'
                }
            },
            {
                path: '/work/shipPlan/productReport',
                name: '生产作业统计',
                component: resolve => require(['../views/business/shipPlan/productReport.vue'], resolve),
                meta: {
                    title: '生产作业统计'
                }
            },
            {
                path: '/work/shipPlan/load',
                name: '装船计划列表',
                component: resolve => require(['../views/business/shipPlan/shipLoad.vue'], resolve),
                meta: {
                    title: '装船计划列表'
                }
            },
            {
                path: "/work/shipPlan/loadAdd",
                name: "创建装船计划",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/shipLoadAdd.vue"
                    ], resolve),
                meta: {
                    title: "创建装船计划"
                }
            },
            {
                path: "/work/shipPlan/loadEdit",
                name: "编辑装船计划",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/shipLoadEdit.vue"
                    ], resolve),
                meta: {
                    title: "编辑装船计划"
                }
            },
            {
                path: "/work/shipPlan/close",
                name: "外理封航",
                component: resolve =>
                    require(["../views/business/shipPlan/close.vue"], resolve),
                meta: {
                    title: "外理封航"
                }
            },
            {
                path: "/work/shipPlan/unload",
                name: "卸船计划列表",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/shipUnload.vue"
                    ], resolve),
                meta: {
                    title: "卸船计划列表"
                }
            },
            {
                path: "/work/shipPlan/unloadAdd",
                name: "创建卸船计划",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/shipUnloadAdd.vue"
                    ], resolve),
                meta: {
                    title: "创建卸船计划"
                }
            },
            {
                path: "/work/shipPlan/unloadEdit",
                name: "编辑卸船计划",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/shipUnloadEdit.vue"
                    ], resolve),
                meta: {
                    title: "编辑卸船计划"
                }
            },
            {
                path: "/work/shipPlan/feeForm",
                name: "拆提放行",
                component: resolve =>
                    require(["../views/business/shipPlan/feeForm.vue"], resolve),
                meta: {
                    title: "拆提放行"
                }
            },{
                path: "/work/shipPlan/fee",
                name: "拆提封航",
                component: resolve =>
                    require(["../views/business/shipPlan/fee.vue"], resolve),
                meta: {
                    title: "拆提封航"
                }
            },{
                path: '/work/query/load',
                name: '装船查询',
                component: resolve => require(['../views/business/query/load.vue'], resolve),
                meta: {
                    title: '装船查询'
                }
            },
            {
                path: '/work/query/loadDetail',
                name: '装船计划详情',
                component: resolve => require(['../views/business/query/loadDetail.vue'], resolve),
                meta: {
                    title: '装船计划详情'
                }
            },
            {
                path: '/work/query/unload',
                name: '卸船查询',
                component: resolve => require(['../views/business/query/unload.vue'], resolve),
                meta: {
                    title: '卸船查询'
                }
            },
            {
                path: '/work/query/unloadDetail',
                name: '卸船计划详情',
                component: resolve => require(['../views/business/query/unloadDetail.vue'], resolve),
                meta: {
                    title: '卸船计划详情'
                }
            },
            {
                path: '/work/query/damaged',
                name: '残损箱查询',
                component: resolve => require(['../views/business/query/damaged.vue'], resolve),
                meta: {
                    title: '残损箱查询'
                }
            },
            {
                path: '/work/query/bill',
                name: '账单查询',
                component: resolve => require(['../views/business/query/bill.vue'], resolve),
                meta: {
                    title: '账单查询'
                }
            },
            {
                path: '/work/query/special',
                name: '特殊理箱查询',
                component: resolve => require(['../views/business/query/special.vue'], resolve),
                meta: {
                    title: '特殊理箱查询'
                }
            },
            {
                path: '/work/shipPlan/jobTrack',
                name: '作业跟踪',
                component: resolve => require(['../views/business/shipPlan/jobTrack.vue'], resolve),
                meta: {
                    title: '作业跟踪'
                }
            },
            {
                path: '/work/query/unpack',
                name: '拆箱查询',
                component: resolve => require(['../views/business/query/unpacking.vue'], resolve),
                meta: {
                    title: '拆箱查询'
                }
            },
            {
                path: '/work/query/boxup',
                name: '装箱查询',
                component: resolve => require(['../views/business/query/boxup.vue'], resolve),
                meta: {
                    title: '装箱查询'
                }
            },
            {
                path: '/work/shipPlan/report',
                name: '装船理箱报告',
                component: resolve => require(['../views/business/shipPlan/report.vue'], resolve),
                meta: {
                    title: '装船理箱报告'
                }
            },
            {
                path: "/work/query/loadDetail",
                name: "装船计划详情",
                component: resolve =>
                    require([
                        "../views/business/query/loadDetail.vue"
                    ], resolve),
                meta: {
                    title: "装船计划详情"
                }
            },
            {
                path: "/work/query/unload",
                name: "卸船查询",
                component: resolve =>
                    require(["../views/business/query/unload.vue"], resolve),
                meta: {
                    title: "卸船查询"
                }
            },
            {
                path: "/work/query/unloadDetail",
                name: "卸船计划详情",
                component: resolve =>
                    require([
                        "../views/business/query/unloadDetail.vue"
                    ], resolve),
                meta: {
                    title: "卸船计划详情"
                }
            },
            {
                path: "/work/shipPlan/report",
                name: "装船理箱报告",
                component: resolve =>
                    require(["../views/business/shipPlan/report.vue"], resolve),
                meta: {
                    title: "装船理箱报告"
                }
            },
            {
                path: "/work/shipPlan/unReport",
                name: "卸船理箱报告",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/unReport.vue"
                    ], resolve),
                meta: {
                    title: "卸船理箱报告"
                }
            },
            {
                path: "/work/feeClose",
                name: "拆提放行",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/feeClose.vue"
                    ], resolve),
                meta: {
                    title: "拆提放行"
                }
            },
            {
                path: "/work/load",
                name: "装箱理货",
                component: resolve =>
                    require(["../views/business/shipPlan/load.vue"], resolve),
                meta: {
                    title: "装箱理货"
                }
            },
            {
                path: "/work/unbox",
                name: "拆箱理货",
                component: resolve =>
                    require(["../views/business/shipPlan/unbox.vue"], resolve),
                meta: {
                    title: "拆箱理货"
                }
            },
            {
                path: "/work/special",
                name: "特殊理箱",
                component: resolve =>
                    require([
                        "../views/business/shipPlan/special.vue"
                    ], resolve),
                meta: {
                    title: "特殊理箱"
                }
            },
            {
                path: "/work/balance",
                name: "结算对账单",
                component: resolve =>
                    require(["../views/business/balance/balance.vue"], resolve),
                meta: {
                    title: "结算对账单"
                }
            },
            {
                path: "/work/balanceDetail",
                name: "对账单查看",
                component: resolve =>
                    require(["../views/business/balance/detail.vue"], resolve),
                meta: {
                    title: "对账单查看"
                }
            },
            {
                path: "/work/cash",
                name: "现结查询",
                component: resolve =>
                    require(["../views/business/balance/cash.vue"], resolve),
                meta: {
                    title: "现结查询"
                }
            },
            {
                path: "/work/task",
                name: "作业计件",
                component: resolve =>
                    require(["../views/business/balance/task.vue"], resolve),
                meta: {
                    title: "作业计件"
                }
            },
            {
                path: "/work/classCount",
                name: "港口日期班组统计",
                component: resolve =>
                    require([
                        "../views/business/balance/classCount.vue"
                    ], resolve),
                meta: {
                    title: "港口日期班组统计"
                }
            },
            {
                path: "/work/workClass",
                name: "作业班组统计",
                component: resolve =>
                    require([
                        "../views/business/balance/workClass.vue"
                    ], resolve),
                meta: {
                    title: "作业班组统计"
                }
            },
            {
                path: "/work/workPerson",
                name: "作业人员统计",
                component: resolve =>
                    require([
                        "../views/business/balance/workPerson.vue"
                    ], resolve),
                meta: {
                    title: "作业人员统计"
                }
            },
            {
                path: "/work/cashIndex",
                name: "财务结算",
                component: resolve =>
                    require([
                        "../views/business/balance/feeIndex.vue"
                    ], resolve),
                meta: {
                    title: "财务结算"
                }
            }
        ]
    },
    {
        path: "/business/busPla/Entrust",
        component: layout,
        redirect: "/business/busPla/Entrust/index",
        children: [
            {
                path: "index",
                name: "委托管理",
                component: resolve =>
                    require(["../views/business/entrust/index"], resolve),
                meta: {
                    title: "委托管理"
                }
            },
            {
                path: "Add",
                name: "entrust-add",
                component: resolve =>
                    require([
                        "../views/business/entrust/add-index.vue"
                    ], resolve),
                meta: {
                    title: "新增"
                }
            },
            {
                path: "Add/Enter",
                name: "entrust-add-enter",
                component: resolve =>
                    require([
                        "../views/business/entrust/add/enter.vue"
                    ], resolve),
                meta: {
                    title: "进场入库委托新增"
                }
            },
            {
                path: "Add/TakeOut",
                name: "entrust-add-take-out",
                component: resolve =>
                    require([
                        "../views/business/entrust/add/takeOut.vue"
                    ], resolve),
                meta: {
                    title: "提货出库委托新增"
                }
            },
            {
                path: "Add/TakeApart",
                name: "entrust-add-take-apart",
                component: resolve =>
                    require([
                        "../views/business/entrust/add/takeApart.vue"
                    ], resolve),
                meta: {
                    title: "拆箱委托新增"
                }
            },
            {
                path: "Add/Supply",
                name: "entrust-add-supply",
                component: resolve =>
                    require([
                        "../views/business/entrust/add/supply.vue"
                    ], resolve),
                meta: {
                    title: "补充委托新增"
                }
            },
            //基础管理工作台页面的查询
            {
                path: "/Home/SystemBase/operationPoint",
                name: "作业点管理",
                component: resolve =>
                    require([
                        "../views/business/operationPoint/index.vue"
                    ], resolve),
                meta: {
                    title: "作业点管理"
                }
            },
            {
                path: "/Home/SystemBase/terminal",
                name: "终端登录日志",
                component: resolve =>
                    require([
                        "../views/business/terminalLogin/index.vue"
                    ], resolve),
                meta: {
                    title: "终端登录日志"
                }
            },
            {
                path: "/Home/SystemBase/warehouse",
                name: "仓库设置",
                component: resolve =>
                    require([
                        "../views/business/adminWarehouse/index.vue"
                    ], resolve),
                meta: {
                    title: "仓库设置"
                }
            },
            {
                path: "/Home/SystemBase/storageSet",
                name: "库房设置",
                component: resolve =>
                    require([
                        "../views/business/storageSet/index.vue"
                    ], resolve),
                meta: {
                    title: "库房设置"
                }
            },
            {
                path: "/Home/SystemBase/storehousePlanType",
                name: "仓库策划类型",
                component: resolve =>
                    require([
                        "../views/business/storehousePlanType/index.vue"
                    ], resolve),
                meta: {
                    title: "仓库策划类型"
                }
            },
            {
                path: "/Home/SystemBase/storehousePlan",
                name: "仓库策划设置",
                component: resolve =>
                    require([
                        "../views/business/storehousePlan/index.vue"
                    ], resolve),
                meta: {
                    title: "仓库策划设置"
                }
            },
            {
                path: "/Home/SystemBase/icCard",
                name: "IC卡管理",
                component: resolve =>
                    require([
                        "../views/business/icCard/index.vue"
                    ], resolve),
                meta: {
                    title: "IC卡管理"
                }
            },
            {
                path: "/Home/SystemBase/barcodeTemplate",
                name: "条形码模板",
                component: resolve =>
                    require([
                        "../views/business/barcodeTemplate/index.vue"
                    ], resolve),
                meta: {
                    title: "条形码模板"
                }
            },
            {
                path: "/Home/SystemBase/barcodeManagement",
                name: "条形码管理",
                component: resolve =>
                    require([
                        "../views/business/barcodeManagement/index.vue"
                    ], resolve),
                meta: {
                    title: "条形码管理"
                }
            },
            {
                path: "/Home/SystemBase/holidayManagement",
                name: "节假日管理",
                component: resolve =>
                    require([
                        "../views/business/holidayManagement/index.vue"
                    ], resolve),
                meta: {
                    title: "节假日管理"
                }
            },
            {
                path: "/Home/SystemBase/processRule",
                name: "流程配置规则",
                component: resolve =>
                    require([
                        "../views/business/processRule/index.vue"
                    ], resolve),
                meta: {
                    title: "流程配置规则"
                }
            },
            {
                path: "/Home/SystemBase/warehouseOperationPoint",
                name: "仓库作业点设置",
                component: resolve =>
                    require([
                        "../views/business/warehouseOperationPoint/index.vue"
                    ], resolve),
                meta: {
                    title: "仓库作业点设置" 
                }
            },
            // 件货系统

            {
                path: "/goods/business",
                name: "商务管理工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/business.vue"
                    ], resolve),
                meta: {
                    title: "商务管理工作台"
                }
            },
            {
                path: "/goods/business/accountSearch",
                name: "账户快速查询",
                component: resolve =>
                    require([
                        "../views/business/goods/business/accountSearch.vue"
                    ], resolve),
                meta: {
                    title: "账户快速查询"
                }
            },
            {
                path: "/goods/business/customerSearch",
                name: "客户快速查询",
                component: resolve =>
                    require([
                        "../views/business/goods/business/customerSearch.vue"
                    ], resolve),
                meta: {
                    title: "客户快速查询"
                }
            },
            {
                path: "/goods/business/accountGroupView",
                name: "账户组快速查看",
                component: resolve =>
                    require([
                        "../views/business/goods/business/accountGroupView.vue"
                    ], resolve),
                meta: {
                    title: "账户组快速查看"
                }
            },
            {
                path: "/goods/business/fastSearch",
                name: "快速查询",
                component: resolve =>
                    require([
                        "../views/business/goods/business/fastSearch.vue"
                    ], resolve),
                meta: {
                    title: "快速查询"
                }
            },
            {
                path: "/goods/storehouse",
                name: "仓库管理",
                component: resolve =>
                    require([
                        "../views/business/goods/storehouse.vue"
                    ], resolve),
                meta: {
                    title: "仓库管理"
                }
            },
            {
                path: "/goods/things",
                name: "货权管理",
                component: resolve =>
                    require([
                        "../views/business/goods/things.vue"
                    ], resolve),
                meta: {
                    title: "货权管理"
                }
            },
            {
                path: "/goods/matter",
                name: "实物管理工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/matter.vue"
                    ], resolve),
                meta: {
                    title: "实物管理工作台"
                }
            },
            {
                path: "/goods/matter/inOutRecord",
                name: "出入库记录",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/inOutRecord.vue"
                    ], resolve),
                meta: {
                    title: "出入库记录"
                }
            },
            {
                path: "/goods/matter/stockManage",
                name: "库存管理",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/stockManage.vue"
                    ], resolve),
                meta: {
                    title: "库存管理"
                }
            },
            {
                path: "/goods/matter/auditMatter",
                name: "实物调整审核",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/auditMatter.vue"
                    ], resolve),
                meta: {
                    title: "实物调整审核"
                }
            },
            {
                path: "/goods/matter/shiftSearch",
                name: "移位调整查询",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/shiftSearch.vue"
                    ], resolve),
                meta: {
                    title: "移位调整查询"
                }
            },
            {
                path: "/goods/matter/cheackPlan",
                name: "盘点计划查询",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/cheackPlan.vue"
                    ], resolve),
                meta: {
                    title: "盘点计划查询"
                }
            },
            {
                path: "/goods/matter/wrongList",
                name: "盘点有误物资清单",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/wrongList.vue"
                    ], resolve),
                meta: {
                    title: "盘点有误物资清单"
                }
            },
            {
                path: "/goods/matter/detailCount",
                name: "细盘",
                component: resolve =>
                    require([
                        "../views/business/goods/matter/detailCount.vue"
                    ], resolve),
                meta: {
                    title: "细盘"
                }
            },
            {
                path: "/goods/accept",
                name: "接发管理工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/accept.vue"
                    ], resolve),
                meta: {
                    title: "接发管理工作台"
                }
            },
            {
                path: "/goods/accept/carry",
                name: "接运记录",
                component: resolve =>
                    require([
                        "../views/business/goods/accept/carry.vue"
                    ], resolve),
                meta: {
                    title: "接运记录"
                }
            },
            {
                path: "/goods/accept/interchangeDistribution",
                name: "分配内转车",
                component: resolve =>
                    require([
                        "../views/business/goods/accept/interchangeDistribution.vue"
                    ], resolve),
                meta: {
                    title: "分配内转车"
                }
            },
            {
                path: "/goods/enter",
                name: "入库作业平台",
                component: resolve =>
                    require([
                        "../views/business/goods/enter.vue"
                    ], resolve),
                meta: {
                    title: "入库作业平台"
                }
            },
            {
                path: "/goods/enter/arrivalForecastList",
                name: "到达预报列表",
                component: resolve =>
                    require([
                        "../views/business/goods/enter/arrivalForecastList.vue"
                    ], resolve),
                meta: {
                    title: "到达预报列表"
                }
            },    
            {
                path: "/goods/enter/receiveNote",
                name: "验收单",
                component: resolve =>
                    require([
                        "../views/business/goods/enter/receiveNote.vue"
                    ], resolve),
                meta: {
                    title: "验收单"
                }
            },
            {
                path: "/goods/enter/depositReceipt",
                name: "存单",
                component: resolve =>
                    require([
                        "../views/business/goods/enter/depositReceipt.vue"
                    ], resolve),
                meta: {
                    title: "存单"
                }
            },
            {
                path: "/goods/out",
                name: "出库作业平台",
                component: resolve =>
                    require([
                        "../views/business/goods/out.vue"
                    ], resolve),
                meta: {
                    title: "出库作业平台"
                }
            },
            {
                path: "/goods/out/stock",
                name: "提单查看",
                component: resolve =>
                    require([
                        "../views/business/goods/out/stock.vue"
                    ], resolve),
                meta: {
                    title: "提单查看"
                }
            },
            {
                path: "/goods/out/outBill",
                name: "出库单列表",
                component: resolve =>
                    require([
                        "../views/business/goods/out/outBill.vue"
                    ], resolve),
                meta: {
                    title: "出库单列表"
                }
            },
            {
                path: "/goods/out/outPass",
                name: "冲关授权查看",
                component: resolve =>
                    require([
                        "../views/business/goods/out/outPass.vue"
                    ], resolve),
                meta: {
                    title: "冲关授权查看"
                }
            },
            {
                path: "/goods/gate",
                name: "闸口工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/gate.vue"
                    ], resolve),
                meta: {
                    title: "闸口工作台"
                }
            },
            {
                path: "/goods/gates/history",
                name: "历史车辆记录查询",
                component: resolve =>
                    require(["../views/business/goods/gates/history.vue"], resolve),
                meta: {
                    title: "历史车辆记录查询"
                }
            },
            {
                path: "/goods/raw",
                name: "原料加工工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/raw.vue"
                    ], resolve),
                meta: {
                    title: "原料加工工作台"
                }
            },
            {
                path: "/goods/finish",
                name: "成品出库工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/finish.vue"
                    ], resolve),
                meta: {
                    title: "成品出库工作台"
                }
            },
            {
                path: "/goods/monitor",
                name: "调度监控工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/monitor.vue"
                    ], resolve),
                meta: {
                    title: "调度监控工作台"
                }
            },
            {
                path: "/goods/revenue",
                name: "营收工作台",
                component: resolve =>
                    require([
                        "../views/business/goods/revenue.vue"
                    ], resolve),
                meta: {
                    title: "营收工作台"
                }
            },
            {
                path: "/goods/warehouse",
                name: "仓库管理平台",
                component: resolve =>
                    require([
                        "../views/business/goods/warehouse.vue"
                    ], resolve),
                meta: {
                    title: "仓库管理平台"
                }
            },
            {
                path: "/goods/record",
                name: "作业计件管理平台",
                component: resolve =>
                    require([
                        "../views/business/goods/record.vue"
                    ], resolve),
                meta: {
                    title: "作业计件管理平台"
                }
            },
            {
                path: "/goods/report",
                name: "统计报表",
                component: resolve =>
                    require([
                        "../views/business/goods/report.vue"
                    ], resolve),
                meta: {
                    title: "统计报表"
                }
            },
            {
                path: "/goods/things/cargo",
                name: "货类种类管理",
                component: resolve =>
                    require([
                        "../views/business/goods/things/cargo.vue"
                    ], resolve),
                meta: {
                    title: "货类种类管理"
                }
            },
            {
                path: "/goods/things/view",
                name: "查看货物",
                component: resolve =>
                    require([
                        "../views/business/goods/things/thingAttribute.vue"
                    ], resolve),
                meta: {
                    title: "查看货物"
                }
            },
            {
                path: "/goods/things/propertyControl",
                name: "货权控制列表",
                component: resolve =>
                    require([
                        "../views/business/goods/things/propertyControl.vue"
                    ], resolve),
                meta: {
                    title: "货权控制列表"
                }
            },
            {
                path: "/goods/things/accountPageList",
                name: "账页列表",
                component: resolve =>
                    require([
                        "../views/business/goods/things/accountPageList.vue"
                    ], resolve),
                meta: {
                    title: "账页列表"
                }
            },
            {
                path: "/goods/things/auditList",
                name: "货权控制审核列表",
                component: resolve =>
                    require([
                        "../views/business/goods/things/auditList.vue"
                    ], resolve),
                meta: {
                    title: "货权控制审核列表"
                }
            },
            {
                path: "/goods/things/stockAdjustReviewList",
                name: "库存调整审核列表",
                component: resolve =>
                    require([
                        "../views/business/goods/things/stockAdjustReviewList.vue"
                    ], resolve),
                meta: {
                    title: "库存调整审核列表"
                }
            },
            {
                path: "/goods/things/unifyGoodsAccount",
                name: "统一管理物资调账",
                component: resolve =>
                    require([
                        "../views/business/goods/things/unifyGoodsAccount.vue"
                    ], resolve),
                meta: {
                    title: "统一管理物资调账"
                }
            },
            {
                path: "/goods/things/designatedGoodsAccount",
                name: "指定管理物资调账",
                component: resolve =>
                    require([
                        "../views/business/goods/things/designatedGoodsAccount.vue"
                    ], resolve),
                meta: {
                    title: "指定管理物资调账"
                }
            },
        ]
    },
    {
        path: "/business/busPla/Project",
        name: "Project",
        component: layout,
        meta: {
            title: "Project"
        },
        redirect: "/business/busPla/Project/index",
        children: [
            {
                path: "index",
                name: "项目管理",
                component: resolve =>
                    require(["../views/business/project/index.vue"], resolve),
                meta: {
                    title: "项目管理"
                }
            },
            {
                path: "build/:model/:id",
                name: "项目操作",
                component: resolve =>
                    require(["../views/business/project/step.vue"], resolve),
                meta: {
                    title: "项目操作"
                }
            }
        ]
    },
    {
        path: '/Login',
        name: 'login',
        component: resolve => require(['../views/login/WLLogin.vue'], resolve),
        meta: {
            title: "登录"
        }
    },
    {
        path: "/Preview",
        name: "preview",
        component: resolve =>
            require(["../views/business/common/preview.vue"], resolve),
        meta: {
            title: "预览"
        }
    },
    {
        path: "/TicketPrint",
        name: "ticketPrint",
        component: resolve =>
            require(["../views/business/gate/print.vue"], resolve),
        meta: {
            title: "打印小票"
        }
    },
    {
        path: "/UnboxPrint/:id",
        name: "UnboxPrint",
        component: resolve =>
            require(["../views/business/print/unboxPrint.vue"], resolve),
        meta: {
            title: "货损报告打印"
        }
    },
    {
        path: "/TotalPrint/:id",
        name: "TotalPrint",
        component: resolve =>
            require(["../views/business/print/totalPrint.vue"], resolve),
        meta: {
            title: "汇总报告套印"
        }
    },
    {
        path: "/newTotalPrint/:id",
        name: "newTotalPrint",
        component: resolve =>
            require(["../views/business/print/newTotalPrint.vue"], resolve),
        meta: {
            title: "汇总报告打印"
        }
    },
    {
        path: "/newDetailPrint/:id",
        name: "newTotalPrint",
        component: resolve =>
            require(["../views/business/print/newDetailPrint.vue"], resolve),
        meta: {
            title: "明细报告打印"
        }
    },
    {
        path: "/DetailPrint/:id",
        name: "DetailPrint",
        component: resolve =>
            require(["../views/business/print/detailPrint.vue"], resolve),
        meta: {
            title: "明细报告打印"
        }
    },
    {
        path: "/DamagePrint/:id",
        name: "DamagePrint",
        component: resolve =>
            require(["../views/business/print/damagePrint.vue"], resolve),
        meta: {
            title: "货损报告打印"
        }
    },
    {
        path: "/OnPortPrint/:id",
        name: "onPortPrint",
        component: resolve =>
            require(["../views/business/print/onPortPrint.vue"], resolve),
        meta: {
            title: "港装箱报告打印"
        }
    },
    {
        path: "/Total/:id",
        name: "Total",
        component: resolve =>
            require(["../views/business/print/total.vue"], resolve),
        meta: {
            title: "汇总账单打印"
        }
    },
    {
        path: "/sendCarPrint",
        name: "Departure-car-print",
        component: resolve =>
            require([
                "../views/business/print/Departure-car-print.vue"
            ], resolve),
        meta: {
            title: "发车车皮打印"
        }
    },
    {
        path: "/Balance/:id",
        name: "Balance",
        component: resolve =>
            require(["../views/business/print/balance.vue"], resolve),
        meta: {
            title: "结算账单"
        }
    },
    {
        path: "/Detail/:id",
        name: "Detail",
        component: resolve =>
            require(["../views/business/print/detail.vue"], resolve),
        meta: {
            title: "明细打印"
        }
    },
    {
        path: "/shipDetail/:id/:planNo",
        name: "shipDetail",
        component: resolve =>
            require(["../views/business/print/shipDetail.vue"], resolve),
        meta: {
            title: "装卸船明细打印"
        }
    },
    {
        path: "/Sp",
        name: "Sp",
        component: resolve =>
            require(["../views/business/print/sp.vue"], resolve),
        meta: {
            title: "特殊理箱明细打印"
        }
    },
    {
        path: "/stowage/:id",
        name: "stowage",
        component: resolve =>
            require(["../views/business/print/stowage.vue"], resolve),
        meta: {
            title: "积载图打印"
        }
    },
    {
        path: "/monthRep",
        name: "monthRep",
        component: resolve =>
            require(["../views/business/print/month.vue"], resolve),
        meta: {
            title: "月报总表打印"
        }
    },
    {
        path: "/monthTotal",
        name: "monthTotal",
        component: resolve =>
            require(["../views/business/print/monthTotal.vue"], resolve),
        meta: {
            title: "月结账单打印"
        }
    },
    {
        path: "/monthShipName",
        name: "monthShipName",
        component : resolve =>
            require(["../views/business/print/monthShipName.vue"], resolve),
        meta: {
            title: "船代统计打印"
        }
    },
    {
        path: "/productShipName",
        name: "productShipName",
        component : resolve =>
            require(["../views/business/print/productShipName.vue"], resolve),
        meta: {
            title: "生产进度统计打印"
        }
    },
    {
        path: "/productCountPrint",
        name: "productCountPrint",
        component : resolve =>
            require(["../views/business/print/productCountPrint.vue"], resolve),
        meta: {
            title: "生产月统计报表打印"
        }
    },
    {
        path: "/Chain",
        name: "Chain",
        component: resolve =>
            require(["../views/business/print/Chain.vue"], resolve),
        meta: {
            title: "月报同比表打印"
        }
    },
    {
        path: "/YOY",
        name: "YOY",
        component: resolve =>
            require(["../views/business/print/YOY.vue"], resolve),
        meta: {
            title: "月报环比表打印"
        }
    },{
        path: "/ShipPlanPrint",
        name: "ShipPlanPrint",
        component : resolve =>
            require(["../views/business/print/ShipPlanPrint.vue"], resolve),
        meta: {
            title: "理箱列表打印"
        }
    },{
        path: "/loadPlanPrint",
        name: "loadPlanPrint",
        component : resolve =>
            require(["../views/business/print/loadPlanPrint.vue"], resolve),
        meta: {
            title: "理箱列表打印"
        }
    }
    // {
    //     path:'/webview',
    //     name:'webview',
    //     component:resolve=>require(['../views/business/print/webview.vue'],resolve),
    //     meta:{
    //         title:'webview'
    //     }
    // },
];

const router = new Router({
    routes
});

router.afterEach(to => {
    document.title = (to.meta && to.meta.title) || "万州集装箱系统";
});

export default router;
